#ifndef __mysql_H__
#define __mysql_H__
#include <mysql/mysql.h>
#include <func.h>
#include <crypt.h>
#include <shadow.h>
#define SQL_MAX 1024
#define STR_LEN 8 //定义随机输出的字符串长度。
char *GenerateSalt(char *salt);
bool connectDB(MYSQL **mysql);
int addTableData(MYSQL *mysql, char *Tname, char *field, char *value);
char * searchTableData(MYSQL *mysql, char *Tname, char *column, char *where);
int delTabledata(MYSQL *mysql, char *Tname, char *where);
int altTabledata(MYSQL *mysql, char *Tname, char *newfield, char *where);
#endif
